package com.gengzp.common.model.permission.resp;

import com.gengzp.common.document.annotations.ApiModel;
import com.gengzp.common.document.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @ClassName SearchPermissionResp
 * @Description 查询权限返回实体, 树结构
 * @Author gengzp
 * @Date 2025/5/16 22:56
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "查询权限返回实体")
public class SearchPermissionResp {

    /**
     * 权限编码
     */
    @ApiModelProperty(value = "权限编码")
    private String permissionCode;

    /**
     * 权限名称
     */
    @ApiModelProperty(value = "权限名称")
    private String permissionName;

    /**
     * 子权限列表
     */
    @ApiModelProperty(value = "子权限列表", collectionGenericClass = SearchPermissionResp.class)
    private List<SearchPermissionResp> sonPermissions;

}
